package org.jit.banking;

/**
 * @author 水杉metasequoia
 */
public class SavingsAccount extends Account{
    /** 储蓄利率 */
    private double interestRate;

    public SavingsAccount(){    }
    public SavingsAccount(double balance,double interestRate){
        this.interestRate = interestRate;
        super.balance = balance * (1+interestRate);
    }

    public double getInterestRate() {
        return interestRate;
    }
}
